package com.knight.tomcat.common;

import com.knight.tomcat.bio.BIOTomcatServer;

import java.util.HashMap;
import java.util.Map;

public class BootStrap {

    public static Map<String, AbstractServlet> servletMapping = new HashMap<>();

    static {
        initServlet();
    }

    private static void initServlet() {
        servletMapping.put("/first", new KnightFirstServlet());
    }

    public void start() {
        new BIOTomcatServer().start();
    }


    public static void main(String[] args) {
        new BootStrap().start();
    }
}
